import json

from my_utils import *

print(str_utils.str_reverse("hello world"))
print(str_utils.substr("hello world", 2, 7))

# file_utils.file_append("test1.txt", "hello world2222")
file_utils.print_file_info("test1.txt")

dict = [{"name": "张三", "age": 18}, {"name": "lisi", "age": 19}]
json_data = json.dumps(dict, ensure_ascii=False)
print(json_data)
python_data = json.loads(json_data)
print(python_data)

dict1 = [1, 2, 3, 4]
print(json.dumps(dict1))
gdt=open("1960-2019全球GDP数据.csv","r",encoding="utf-8")
gdp_data = gdt.readlines()
print(gdp_data)
